package util.math;

import static org.junit.Assert.*;

import java.util.ArrayList;
import java.util.List;

import org.junit.Test;

public class MathHelpTest {
	
	List<Double> timeList = new ArrayList<Double>();
	
	@Test
	public void testTimeHash() {
		timeList.add(8.999999);
		timeList.add(5.098975);
		timeList.add(1099.0000);
		timeList.add(0.00000);
		timeList.add(3458.10);
		timeList.add(2399.0);
		timeList.add(9.0);
		timeList.add(9.9);
		timeList.add(-1.0);
		timeList.add(-10.1);
		timeList.add(-20.1);
		MathHelp mh = new MathHelp();
		System.out.println(mh.timeHash(timeList));
	}

	@Test
	public void testGetDeciaml() {
		double i = 9.0;
		MathHelp mh = new MathHelp();
		double a = mh.getDecimal(i);
		System.out.println(a);
	}
	
	/*@Test
	public void testGetD() {
		double i = 0.9000000;
		MathHelp mh = new MathHelp();
		double a = mh.getD(i);
		System.out.println(a);
	}*/
	
	@Test
	public void testGetHash() {
		double time = -10.012111;
		MathHelp mh = new MathHelp();
		int a = mh.getHash(time);
		System.out.println(a);
	}

}
